<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="1.0" 
			xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<!--<xsl:import href="../../Chapter 8/BusinessObjects/CSLASupport.xslt"/>-->
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:preserve-space elements="*" />

<xsl:template match="* | @* | node()">
	<xsl:copy >
		<xsl:apply-templates select="@*"/>
		<!-- I am using the local name technique becuase it removes the dependency on the prefix/namespace -->
		<!--<xsl:apply-templates select="dbs:ExtendedProperties/dbs:ExtendedProperty | dbs:ExtendedProperty" />-->
		<xsl:apply-templates select="*[local-name()='ExtendedProperties']" mode="ExtendedProperties"/>
		<xsl:apply-templates select="*[local-name()='ExtendedProperty']" mode="ExtendedProperty"/>
		<xsl:apply-templates select="*"/>
	</xsl:copy> 
</xsl:template>

<xsl:template match="*" mode="ExtendedProperties">
	<xsl:apply-templates select="*[local-name()='ExtendedProperty']" mode="ExtendedProperty"/>
</xsl:template>

<xsl:template match="*" mode="ExtendedProperty">
	<xsl:attribute name="{@Name}">
		<xsl:value-of select="@Value"/>
	</xsl:attribute>
</xsl:template>

</xsl:stylesheet>

  